module.exports = async (ctx, next) => {
    ctx.success = ({ data, msg, total, success, token }) => {
        ctx.body = { code: 200, data, msg, total, success, token }
    }
    await next()
}
